﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;
using Business;
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
// To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. 
// [System.Web.Script.Services.ScriptService]

public class Service : System.Web.Services.WebService
{
    Common common;
    public Service () {

        //Uncomment the following line if using designed components 
        //InitializeComponent(); 
        common = new Common();
    }

    [WebMethod]
    public  ISHCMC_DebtorRegister[] GetListStudent() {
        return common.GetListStudent().ToArray();
    }
    [WebMethod]
    public ISHCMC_DebtorRegister GetStudentInfo(string StudentID)
    {
        return common.GetStudentInfo(StudentID);
    }
    
}